<template>
  <!--首页头部组件-->
  <div>
    <div class="node" :style="node">
      <div class="bigbox">
        <div class="mediumbox">
          <img src="@/assets/avator.jpg" alt="" />
          <div class="smallbox">
            <div class="div3">
              <img src="@/assets/img/brand@2x.png" alt="" />
              <h3>{{ lcheader.name }}</h3>
            </div>
            <div class="div2">
              <p>{{ lcheader.description }} / {{ lcheader.deliveryTime }}分钟送达</p>
            </div>
            <div class="div1">
              <img src="@/assets/img/decrease_1@2x.png" alt="" />
              <p>在线支付满28减5,满50减10</p>
              <button class="btn">5个 ></button>
            </div>
          </div>
        </div>
        <div class="bottombox">
          <img src="@/assets/img/bulletin@3x.png" alt="" />
          <p class="hmpone">{{ lcheader.bulletin }}</p>
          <p class="hmptwo">></p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props:['lcheader'],
  name: "",
  data() {
    return {
      //背景图
      node: {
        backgroundImage: "url(" + require("@/assets/avator.jpg") + ")",
        backgroundRepeat: "no-repeat",
        backgroundSize: " 100%",
      },
    };
  },
  mounted() {},
  methods: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped>
.node {
  width: 100%;
  height: 134px;
  .bigbox {
    width: 100%;
    height: 100%;
    // background: rgba(255, 255, 255, 0.8);
    background-color: black;
    opacity: 0.7;
    .mediumbox {
      padding: 24px 12px 14px 24px;
      display: flex;
      .smallbox {
        color: white;
        margin-left: 16px;
        .div3 {
          display: flex;
          img {
            width: 34px;
            height: 24px;
            margin-right: 6px;
          }
        }
        .div2 {
          font-size: 12px;
          margin-top: 3px;
        }
        .div1 {
          display: flex;
          font-size: 10px;
          margin-top: 1px;
          align-items: center;
          img {
            width: 14px;
            height: 14px;
          }
          .btn {
            width: 52px;
            height: 24px;
            color: rgb(255, 255, 255);
            font-size: 10px;
            border: 0;
            border-radius: 30px;
            margin-left: 44px;
            background-color: rgba(158, 149, 149, 0.2);
          }
        }
      }
      img {
        width: 64px;
        height: 64px;
      }
    }
  }
  .bottombox {
    color: white;
    display: block;
    height: 28px;
    line-height: 28px;
    font-size: 10px;
    background-color: rgba(7, 17, 27, 0.2);
    display: flex;
    align-items: center;
    .hmpone {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .hmptwo {
      margin-left: 4px;
      margin-right: 12px;
      line-height: 28px;
    }
    img {
      width: 30px;
      height: 18px;
      // vertical-align: middle;
      margin-left: 12px;
      margin-right: 4px;
    }
  }
}
</style>
